Repository navigation
fix(platform): land every delete on its overview page - #4381
Merged
Merged
Conversation
yannickmonney
force-pushed
the
fix/delete-returns-to-overview
branch
3 times, most recently
from
October 5, 2026 19:20
aff936e to
4b0216e
Compare
Deleting a project from its General tab's danger zone left the reader on "We couldn't find that project": the dialog navigated only when a caller passed `navigateOnSuccess`, and the danger zone never did. The dialog now reads the open route instead. When the deleted project is the one on screen, it replaces that page with the projects list; deleted from the list, it stays there and keeps the list's Teams filter.
Deleting the chat on screen, from its header or its row, went to plain `/chat`, which resumes the most recent chat. The thread list has not read again by then, so the resume could pick the chat just deleted and land on "This chat is not available", or else drop the reader into another chat. The delete dialog now leaves the deleted conversation itself: when the route's thread is the one deleted, it replaces the page with a fresh chat (`?new`). Deleting any other chat keeps the open one on screen.
A folder deleted from its row always sits in the folder on screen, yet the page then jumped to the Documents root and lost the reader's place. The delete now only closes its confirmation, and the row leaves the list. A deleted folder's own address never recovered either. Its breadcrumb read is refused with 404 (403 out of reach), and the adapter surfaced that as an error, so the self-heal waiting for an empty trail never ran. The page showed an empty folder that no longer exists, with uploads still aimed at it. The adapter now answers no trail for those refusals, as the 0.4 read did, so the page toasts "Folder not found or no longer accessible" and replaces the dead address with the root. Any other failure stays an error.
The rail tile reopens the automation last visited, and the detail shell already falls back to the list when that automation is unknown. It missed a DELETED one: that read answers AUTOMATION_DELETED with a date, not "not found". After deleting an automation from the list, the tile still opened its deletion banner. A restored arrival at a deleted automation now forgets it and lands on the list, while a deliberate arrival, such as a run link, keeps the banner and the run history. The coverage register gains one row for the component halves of the new boxes PROJ-F40, CHAT-F61, KNOW-F37 and AUTO-F56.
yannickmonney
force-pushed
the
fix/delete-returns-to-overview
branch
from
October 5, 2026 21:29
4b0216e to
9517faa
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
After a delete, the reader now lands on the entity's overview, never on a page that names what they just deleted. An inventory of every delete surface in the platform found four places that got this wrong.
What changes
navigateOnSuccess, and the danger zone never did. The dialog now reads the open route: if the deleted project is the one on screen, it replaces the page with/projects. Deleted from the list, it stays put and keeps the?teams=filter./chat, which resumes the most recent chat. The list hasn't re-read yet, so that could reopen the deleted chat ("This chat is not available") or another one.ThreadDeleteDialognow owns the leave: if the route's thread was deleted, it replaces the page with a fresh chat (?new). The header and row callers no longer passonDeleted.onFolderDeletedplumbing is gone.[]for those refusals, as the 0.4 read did. The self-heal replaces the dead address instead of pushing a new entry, so Back can't loop into it.AUTOMATION_DELETED. After a delete from the list, the tile opened the deletion banner. A restored arrival now forgets it and lands on the list. A deliberate arrival, such as a run link, keeps the banner and the run history.Already correct and unchanged:
?task=sheet?conversation=with replace)?folderId=cleared)Verification
project-delete-dialog.test.tsx(+4)thread-delete-dialog.test.tsx(new)documents-table.folder-delete.test.tsx(new; the real table, columns, row menu and confirmation)breadcrumb-navigation.test.tsx(+3)documents.breadcrumb.test.ts(+3)automation-detail-shell.test.tsx(+2)tsc --noEmitfor the platform (before rebase), andoxlint --type-awareplusoxfmt --checkon every changed file.tests/guards(252 tests),lint:manual, andcheck-guide.tson the four touched suites.chat-surfaceaxe audits fail the same way on the unchanged files (3 of 3 runs).Manual layer
PROJ-F40,CHAT-F61,KNOW-F37,AUTO-F56.reference/automation.mdrow for their component halves.Noticed, not changed:
NAV-F16still says a rail click always opens a section's first page. #3959 brought back the Knowledge-tab and automation memories without updating that box.